<?php
require(dirname(__FILE__) . '/init.php');

//根据配置生成最新的发送限制列表
$sql = "truncate sendLimit";
$GLOBALS['db']->dbquery($sql);

foreach($serverArr as $keys=>$valueServer){
    foreach($emailLimitTypeArr as $key=>$value){
		$sql = "insert into sendLimit(emailName, ipType, emailType) values('".$value."', ".$keys.", ".$key.")";
		$GLOBALS['db']->dbquery($sql);
	}
}
?>